package com.qd.hik.base;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Service;

/**
 * 〈一句话功能简述〉<br> 
 *
 * @author sjk
 * @create 2024-05-27 10:15
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
@ConfigurationProperties(prefix = "hik-vision")
@Service
public class HkBaseTokenDTO {
    /**
     * 接入 id
     */
    private String clientId;
    /**
     * 接入秘钥
     */
    private String clientSecret;
    /**
     * 请求地址
     */
    private String baseUrl;

    public void freeData() {
        this.clientId = null;
        this.clientSecret = null;
        this.baseUrl = null;
    }

}